class Solution {
public:
    vector<int> GetLeastNumbers_Solution(vector<int> input, int k) {
        sort(input.begin(),input.end());
        vector<int> result;
        if(k>input.size())
            return result;
        for(int i = 0;i<k;i++){
            result.push_back(input[i]);
        }
        return result;
    }
};
